#Definitions by Fabian Ritter (fabian.ritter@live.de), 2012

module Definitions
  
    def model 
      Sketchup.active_model
    end
    
    def ents
      model.active_entities
    end
    
    def layers 
      model.layers
    end
    
    def materials 
      model.materials
    end
    
    def component_definitions 
      model.definitions
    end
    
    def selection
      model.selection
    end
    
    def view
      model.active_view
    end
    
    def ColorByLayer
      opts = model.rendering_options 
      opts['DisplayColorByLayer']= true
    end
  
end

# UI.messagebox "Definitions Loaded"
